package com.pengchuang.ACS.admin.boot.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.pengchuang.ACS.admin.boot.dao.SysOauthClientMapper;
import com.pengchuang.ACS.admin.boot.entity.SysOauthClient;
import com.pengchuang.ACS.admin.boot.service.ISysOauthClientService;
import com.pengchuang.ACS.common.utils.PageUtils;
import com.pengchuang.ACS.common.utils.Query;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.Map;


@Service
@RequiredArgsConstructor
public class SysOauthClientServiceImpl extends ServiceImpl<SysOauthClientMapper, SysOauthClient> implements ISysOauthClientService {
	@Override
	public PageUtils queryPage(Map<String, Object> params) {
		IPage<SysOauthClient> page = this.page(
				new Query<SysOauthClient>().getPage(params),
				new QueryWrapper<SysOauthClient>()
		);

		return new PageUtils(page);
	}
}
